<?php
if (!defined('IN_MEDIA')) die("Hacking attempt");
   $web_type = '.html';
   $web_title = m_get_config(web_title);
   $web_keywords = m_get_config(web_title);
   $web_email = m_get_config(web_email);
   $link = m_get_config(web_url);
   $link_archive = m_get_config(web_url).'/archive/page_';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title><?=$web_title?> Archive</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="<?=$web_description;?>" />
<meta name="keywords" content=" DJ, <?=$web_title;?>, nhac dance, nhac dj hay, nhac san dj, nhac san 2011, nhac dj hot, nhac dance 2011, dance cuc manh, dj cuc manh, electro house, 2011"> 

<link rel="shortcut icon" href="../favicon.ico" />
<link rel="alternate" type="application/rss+xml" title="mixvn.net" href="../rss.xml" />
<style type="text/css">
body
{
	font-family:Tahoma, Arial, Helvetica, sans-serif;
	color:#FFF;
	background:#262626 url(bg_center.gif) repeat-y center;
	margin:0px;
	height:100%;
}
a:link,
a:visited
{
	color:#FFF;
	text-decoration:none;
}
a:hover
{
	color:#FFF;
	text-decoration:underline;
}
div
{	overflow:hidden;
	text-align:center;
}
table, td, th, tr, div, h1, h2, h3
{
	font-size:8pt;
}
h1, h2, h3
{	
	font-weight:normal;
	margin:0px;
	padding:0px
}
ul
{
	list-style:none;
	margin:0px;
	padding:0px;
	color:#FF0000;
}
li
{
	list-style:none;
	padding-bottom:5px;
	color:#FF0000;
}

.tag
{
	 position:absolute;
	 visibility:hidden;
	 font-size:1px;
}

.id
{	margin-right:10px;
	text-align:right;
	width:50px;
	display:block;
	float:left;
}
#container
{	
	width:578px;
	margin:0px auto;
}
#top
{	background:url(mixvn_girl_dance_music.gif) no-repeat;
	width:540px;
	height:360px;
	margin:0px auto;
}
#top h1
{	display:none;
}
#body
{	margin:0px 15px;
	text-align:left;
}
#bottom
{	text-align:center;
	margin:0px 20px;
	border-top:#222 solid 1px;
}
#bottom p
{	margin:20px 0px;
}
.pages
{	text-align:center;
	padding:10px 0px;
}
h1.title
{	text-align:center;
	font-size:14pt;
}
</style>
</head><body>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-15659341-1");
pageTracker._setDomainName(".matxac.com");
pageTracker._trackPageview();
pageTracker._initData();
} catch(err) {}</script>
<div id="global">
<div id="container">
<div id="top"><h1>Nonstop, Dance, Remix, DJ, Non-stop, Progressive, House, Trance, Italo, Funk, RNB, Acid, Electro, Techno, Alternative, Underground, Nghe nhạc dance bài hát nhac bài hat, trung quốc, china, chinese, nonstop, no stop, nontop</h1></div>
<div id="body">
<h1 class="title"><a href="<?=$link?>">Matxac</a> Archive</h1>
<ul>
<?php
function grab_code($url, $x_code, $y_code, $type) {
	if($type == 1){
		$get_now = file_get_contents($url);
		$code = explode($x_code, $get_now);
        $code = explode($y_code, $code[1]);
    }
	elseif($type == 2){
        $code = explode($x_code, $url);
        $code = explode($y_code, $code[1]);
	}
   return $code[0];
}
   $archive = $_GET['archive'];
   $page = grab_code($archive, 'page_', $web_type, 2);
   $limit = 50;
   if (!$page || !is_numeric($page)) $page = 1;
   $per_size = ($page-1)*$limit;
   $q = $mysql->query("SELECT * FROM ".$tb_prefix."data ORDER BY m_id  ASC LIMIT ".$per_size.",".$limit);
   if (!$mysql->num_rows($q)){ 
        echo $lang['no_data'];
	  exit();
   }
   while ($rs = $mysql->fetch_array($q)) {

          $m_id = $rs['m_id'];
          $m_title = $rs['m_title'];
          $m_link = url_link($m_id,$m_title,'nhac-san');
		  $m_tag = $rs['m_title_ascii'];
          $cat_id = $rs['m_cat'];
?>
<li>
<h3><span class="id"><?=$m_id?></span>
<a rel="bookmark" href="<?=$m_link?>" target="matxac.com"><?=$m_title?></a></h3>
<span class="tag"><?=$m_tag?></span>
</li>
<?php
}
?>
</ul>
<p class="pages">
<?php
       $tt = m_get_tt();
       $total = ceil($tt/$limit);
       if ($total <= 1) echo '';
       for($pg = 1; $pg <= $total; $pg++){
	       if($pg==$page) echo "<font style=\"color: rgb(255, 0, 0);\">[".$pg."]</font> "; 
           else echo "<a href=\"".$link_archive.$pg.$web_type."\">".$pg."</a> ";
       } 
?></p>
</div>
<div id="bottom">
<p><a href="<?=$link?>"><b>MatXac.Com</b></a> &copy; 2010 MatXac.Com</p>
</div>
</div>
</div>
</body>
</html>